#include "poolableobject.h"
#include "qkeymetro.h"

PoolableObject::PoolableObject(PoolableObject::Type type) : type_(type)
{
    QKeyMetro::StaticData::pool.append(this);
}

PoolableObject::~PoolableObject()
{
    QKeyMetro::StaticData::pool.removeAll(this);
}

PoolableObject::Type PoolableObject::getType(){
    return type_;
}
